 <form id="form2" name="form2" method="post" action="index">
 <table width="100%" border="0" cellspacing="2" cellpadding="3">
  <tr id="titleuser">
<td>
idTL
</td>
<td>
TenTL
</td>
<td>Thứ Tự</td>
<td>Ẩn Hiện</td>
<td><label>
      <input type="checkbox" name="chkall" id="chkall" />
    </label></td>
</tr>
<?php
foreach($this->session as $value)
{
	?>
	<tr>
<td>
<?php echo $value[idTL]; ?>

</td>
<td>
<?php echo $value[TenTL]; ?>

</td>
<td><?php echo $value[ThuTu]; ?></td>
<td><?php echo $value[AnHien]; ?></td>
  <td><label>
      <input type="checkbox" name="chk[]" id="chk[]" value= "<?php echo $value->idTL;; ?>"/>
      <input type="hidden" name="hid[]" id="hid[]" value="<?php echo $value->idTL;; ?>" />
    </label></td>
</tr>
<?php 
}

?>
</table>
<label>
<input type="submit" name="btnadd" id="btnthem" value="Them" onclick="this.form.action('index')"/>
</label>
<label>
<input type="submit" name="btnsua" id="btnsua" value="Sửa" />
</label>
<label>
<input type="submit" name="btnxoa" id="btnxoa" value="Xoa" />
</label>
</form>